package tools;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import entitybean.oc_sea_area_pla.EntityBeanOc_Sea_Area_Pla;;

public class InterfaceSeaAreaPlaList {
	public List<EntityBeanOc_Sea_Area_Pla> ViewOc_News(ResultSet rs)
	{
		
		List<EntityBeanOc_Sea_Area_Pla>list =new ArrayList<EntityBeanOc_Sea_Area_Pla>();
		try {
			Integer i=1;
			while(rs.next())
			{
				
				EntityBeanOc_Sea_Area_Pla viewoc_news=new EntityBeanOc_Sea_Area_Pla();
				viewoc_news.setOc_sea_area(rs.getString("oc_sea_area"));
				viewoc_news.setOc_sea_area_kind(rs.getString("oc_sea_area_kind"));
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				list.add(viewoc_news);
				i=i+1;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
